﻿//$(function () {


////    /*伸缩按钮，开始*/

////    $("#bookShrink").hover(function () {
////        $(this).addClass("btnFlex_add");
////    }, function () {
////        $(this).removeClass("btnFlex_add");
////    }).click(function () {/*点击笔记本列表的收缩按钮*/
////        $("#hdPlateNotebookWidth").val($(".plateNotebook").width());
////        var totalWidth = $(".plateNotebook").width() - $(".plateNoteBookExtendStrip").width();
////        var moveTime = 200; //移动的频率
////        $("#hdPlatebookWidth").val(totalWidth);

////        $(".plateNoteBookExtendStrip").css("left", function () {
////            return GetLeft($(".platePage")) - $(this).width();
////        }).show().animate({ left: "-=" + totalWidth }, moveTime);
////        $(".plateNotebook").animate({ left: "-=" + totalWidth }, moveTime, function () {
////            $(this).hide().width(function () {
////                return $(".plateNoteBookExtendStrip").width();
////            }).css("left", 0);
////        });
////        $(".platePage").animate({ left: "-=" + totalWidth }, moveTime);
////        $(".plateNote").animate({
////            left: "-=" + totalWidth,
////            width: "+=" + totalWidth
////        }, moveTime);
////        $(".platePageExtendStrip").animate({ left: "-=" + totalWidth }, moveTime);
////    });

////    $(".plateNoteBookExtendStrip").click(function () {/*点击笔记本列表的展开按钮*/
////        var totalWidth = parseInt($("#hdPlatebookWidth").val());
////        var moveTime = 200; //移动的频率
////        $(".plateNoteBookExtendStrip").hide();
////        $(".plateNotebook").width(function () {
////            return totalWidth + $(".plateNoteBookExtendStrip").width();
////        }).css("left", -totalWidth).show().animate({ left: "+=" + totalWidth }, moveTime);
////        $(".platePage").animate({ left: "+=" + totalWidth }, moveTime);
////        $(".plateNote").animate({
////            left: "+=" + totalWidth,
////            width: "-=" + totalWidth
////        }, moveTime);
////        $(".platePageExtendStrip").animate({ left: "+=" + totalWidth }, moveTime);
////    });

////    $(".platePage .btnFlex").hover(function () {
////        $(this).addClass("btnFlex_add");
////    }, function () {
////        $(this).removeClass("btnFlex_add");
////    }).click(function () {/*点击笔记页列表的收缩按钮*/
////        var totalWidth = GetLeft($(".plateNote")) - GetLeft($(".platePage")) - $(".platePageExtendStrip").width();
////        var moveTime = 200; //移动的频率
////        $("#hdPlatePageWidth").val(totalWidth);
////        $(".platePageExtendStrip").css("left", function () {
////            return GetLeft($(".plateNote")) - $(this).width();
////        }).show().animate({ left: "-=" + totalWidth }, moveTime);

////        $(".platePage").animate({ left: "-=" + totalWidth }, moveTime, function () {
////            $(this).hide().width(function () {
////                return $(".platePageExtendStrip").width();
////            }).css("left", GetLeft($(".platePageExtendStrip")));
////        });
////        $(".plateNote").animate({
////            left: "-=" + totalWidth,
////            width: "+=" + totalWidth
////        }, moveTime);
////    });

////    $(".platePageExtendStrip").click(function () {/*点击笔记页列表的展开按钮*/
////        var totalWidth = parseInt($("#hdPlatePageWidth").val());
////        var moveTime = 200; //移动的频率
////        $(".platePageExtendStrip").hide();
////        $(".platePage").width(function () {
////            return totalWidth + $(".platePageExtendStrip").width();
////        }).css("left", function () {
////            return GetLeft($(".platePageExtendStrip")) - totalWidth;
////        }).show().animate({ left: "+=" + totalWidth }, moveTime);
////        $(".plateNote").animate({
////            left: "+=" + totalWidth,
////            width: "-=" + totalWidth
////        }, moveTime);
////    });
////    /*伸缩按钮，结束*/


//});

///*组织一些自己写的方便用的函数的类*/
//function GetLeft(event) {
//    return parseInt(event.css("left").replace("px", ""));
//}
//function GetTop(event) {
//    return parseInt(event.css("top").replace("px", ""));
//}
/*组织一些自己写的方便用的函数的类*/


